package com.syt.dome.repository;

import com.syt.entity.model.hosp.Hospital;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface HospitalRepository  extends MongoRepository<Hospital,String> {

    // 判断 ho里面是否存在数据
    Hospital getHospitalByHoscode(String hoscode);

    // 根据医院名称获取医院列表
    List<Hospital> findHospitalByHosnameLike(String hosname);


}
